package chat.single;

import java.sql.Date;
import java.util.ArrayList;


import chat.user.ChatMsg;
import chat.user.UserBean;

public class MsgSing {

	private MsgSing(){
		
	}
	
	private static MsgSing inst = null;
	
	public static MsgSing getIns(){
		if(inst == null) inst = new MsgSing();
		return inst;
	}
	
	/////////
	
	private ArrayList msg =new ArrayList();
	
	public void addMsg(UserBean u, String content){
		
		msg.add(new ChatMsg(u, content));
		
	}
	
	public ArrayList<ChatMsg> getAllMsg(){
		return msg;
	}
	
	
	
}
